package com.njtoyo.taxi.admin.rest.wrapper.data.data_analysis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("订单量、收入趋势图")
public class OverviewWrapper {
    @ApiModelProperty("地区ID")
    private Long cantonId;

    @ApiModelProperty("公司ID")
    private Long companyId;

    @ApiModelProperty("开始时间，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "开始时间必传")
    private Date startTime;

    @ApiModelProperty("结束时间，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "结束时间必传")
    private Date endTime;
}
